
import ajaxfun from './ajaxfun'
import {
    ISLOGINUSER_ajax, LOGINREGISTER_ajax, GUESTPIECEINFO_ajax,
    USERCONTENTINFO_ajax, GETUSERCONTENTINFOLISTBYID_ajax, GETINDEXLBIMGLIST_ajax,
    GETINDEXZUOPIN_ajax, GETINDEXWRAPPER_ajax, GETINDEXFOOTER_ajax,
    GETHOMEBRAND_ajax, SETUSERCOMMENT_ajax
} from './url'

const configky = '/apis';
// const configky='';

/**
 * 判断登录
 */

export const isLoginUser = (data) => ajaxfun(`${configky}${ISLOGINUSER_ajax}`, data, 'POST')
export const loginRgister = (data) => ajaxfun(`${configky}${LOGINREGISTER_ajax}`, data, 'POST')
export const GuestPiece = (data) => ajaxfun(`${configky}${GUESTPIECEINFO_ajax}`, data)
export const UserContent = (data) => ajaxfun(`${configky}${USERCONTENTINFO_ajax}`, data)
export const getUsercontentInfoListById = (data) => ajaxfun(`${configky}${GETUSERCONTENTINFOLISTBYID_ajax}`, data)
export const getIndexlbimgList = () => ajaxfun(`${configky}${GETINDEXLBIMGLIST_ajax}`)
export const getIndexZuopin = () => ajaxfun(`${configky}${GETINDEXZUOPIN_ajax}`)
export const getIndexWrapper = () => ajaxfun(`${configky}${GETINDEXWRAPPER_ajax}`)
export const getIndexFooter = () => ajaxfun(`${configky}${GETINDEXFOOTER_ajax}`)
export const getHomeBrand = () => ajaxfun(`${configky}${GETHOMEBRAND_ajax}`)
export const setUserComment = (data) => ajaxfun(`${configky}${SETUSERCOMMENT_ajax}`, data, 'POST')